<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/10/9
 * Time: 13:52
 */
/**
 * @var \yii\web\View $this
 * @var \home\modules\docu\models\FormDocuSearch $form_docu_search
 */

use yii\widgets\ListView;
use common\rewrite\widgets\LinkPager;
?>

<div class="row">
    <div class="col-md-8">
        <?= ListView::widget([
            'dataProvider' => $dataProvider,
            'itemView' => function($model){
                return $this->render('_docu_list', ['model' => $model]);
            },
//            'layout' => '{summary}{items}{pager}{sorter}',
            'layout' => '{items}{summary}{pager}',
            'itemOptions' => ['class' => 'news_box'],
            'pager' => [
//                'class' => \liyunfang\pager\LinkPager::class,
//                'pageSizeList' => [1,2,3,5,10,20,50,100],
                'class' => LinkPager::class,
                'go' => true,
            ],
        ]) ?>
    </div>

    <!-- Blog Sidebar Widgets Column -->
    <div class="col-md-4">
        <?=$this->render('/public/_search_side', ['form_docu_search' => $form_docu_search]) ?>
    </div>
</div>
